package com.ebraga.trackerclub.android.dao.api;

import java.util.List;

import com.ebraga.trackerclub.android.dao.entity.RankingAndroid;
import com.ebraga.trackerclub.android.exception.BackofficeDBConnectionException;
import com.ebraga.trackerclub.android.exception.dao.BackofficeDaoException;

public interface RankingDao {
	
	/**
	 * Insert ranking in the local database android
	 * 
	 * @param RankingAndroid
	 * @throws BackofficeDBConnectionException
	 * @throws BackofficeDaoException 
	 */
	void insert(RankingAndroid ranking) throws BackofficeDBConnectionException, BackofficeDaoException;
	
	/**
	 * Return ranking from local database android.
	 * 
	 * @throws BackofficeDBConnectionException
	 * @throws BackofficeDaoException
	 */
	List<RankingAndroid> retrieveRanking() throws BackofficeDBConnectionException, BackofficeDaoException;
	
	/**
	 * Delete all data
	 * 
	 * @throws BackofficeDBConnectionException
	 * @throws BackofficeDaoException
	 */
	void deleteAllLines() throws BackofficeDBConnectionException, BackofficeDaoException;	
}
